]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Small fixes for sidebar application bits
authorColin Walters <walters@verbum.org>
Fri, 10 Jul 2009 21:04:39 +0000 (17:04 -0400)
committerColin Walters <walters@verbum.org>
Fri, 10 Jul 2009 21:04:39 +0000 (17:04 -0400)
We need to set the .name property, also skip unknown apps.

js/ui/widget.js

index 0d326ae5a25eb8bd118ccba9e07c9fb3e8d084f4..d4f661c319a5a7d002df9e71bf8f280c97f4d875 100644 (file)
@@ -290,6 +290,7 @@ function AppsWidgetInfo(appInfo) {
 AppsWidgetInfo.prototype = {
     _init : function(appInfo) {
         this._info = appInfo;
+        this.name = appInfo.get_name();
     },
 
     createIcon : function(size) {
@@ -319,6 +320,8 @@ AppsWidget.prototype = {
         let apps = appSystem.get_favorites();
         for (let i = 0; i < apps.length; i++) {
             let app = appSystem.lookup_app(apps[i]);
+            if (!app)
+                continue;
             this.addItem(new AppsWidgetInfo(app));
         }
     }